package com.foolishbird.sdk.params;

import android.os.Parcel;
import android.os.Parcelable;

import com.foolishbird.sdk.params.bean.ExtendedRoleObj;
import com.foolishbird.sdk.params.bean.PhoneCodeObj;
import com.foolishbird.sdk.params.bean.RoleInfo;
import com.foolishbird.sdk.params.bean.RoleStatus;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;


public class RoleInfoRequestParams extends BaseRequestParams implements Serializable {

    private static final String SERVICE = "role_report";

    @SerializedName("extended_fb")
    private ExtendedRoleObj extendedFB = new ExtendedRoleObj();

    @Override
    public Object getBusinissJson() {
        return extendedFB;
    }

    public ExtendedRoleObj getExtendedFB() {
        return extendedFB;
    }

    public void setExtendedFB(ExtendedRoleObj extendedFB) {
        this.extendedFB = extendedFB;
    }



    public RoleInfoRequestParams(RoleInfo roleInfo, RoleStatus status){
        extendedFB.setRole_level(roleInfo.getRoleLevel());
        extendedFB.setRole_status(status.ordinal());
    }



    @Override
    public String getServiceString() {
        return SERVICE;
    }



}
